#include<bits/stdc++.h>
using namespace std;

int main() {
	int n, k;
	cin >> n >> k;
	if(n - 1 >= k) {
		cout << "YES\n";
	} else {
		cout << "NO" << endl;
	}
	return 0;
}
